package com.lemon.reggie.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class EditSetMealDTO implements Serializable {

    private static final long serialVersionUID = 8773206335213020223L;

    @ApiModelProperty(value = "套餐id")
    @NotNull(message = "套餐id不能为空")
    private Long id;

    @ApiModelProperty(value = "菜品分类id")
    @NotNull(message = "套餐分类id不能为空")
    private Long categoryId;

    @ApiModelProperty(value = "套餐名称")
    @NotBlank(message = "套餐名称不能为空！")
    private String name;

    @ApiModelProperty(value = "套餐价格")
    @NotNull(message = "套餐价格不能为空")
    private BigDecimal price;

    @ApiModelProperty(value = "状态 0:停用 1:启用")
    @NotNull(message = "套餐状态不能为空")
    private Integer status;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "描述信息")
    private String description;

    @ApiModelProperty(value = "图片")
    @NotBlank(message = "套餐图片不能为空！")
    private String image;

    @ApiModelProperty(value = "菜品集合信息")
    private List<@Valid DishDTO> setmealDishes;

}
